package com.midian.model.activity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.midian.model.common.BaseModel;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Type;

import com.vividsolutions.jts.geom.Point;

/**
 * 图书评论
 * 
 */
@Entity
@Table(name = "activity_comment_pic")
public class ActivityCommentPic extends BaseModel {
	/**评论id*/
	 @Column(name="commentId",insertable=false,updatable=false)
	private String commentId;
	/**图片id*/
	private String picId;
	
	@ManyToOne(cascade = CascadeType.ALL, optional = false)
	@JoinColumn(name="commentId",referencedColumnName="id")
	@NotFound(action=NotFoundAction.IGNORE)
	private ActivityComment activityComment;

	public String getCommentId() {
		return commentId;
	}

	public void setCommentId(String commentId) {
		this.commentId = commentId;
	}

	public String getPicId() {
		return picId;
	}

	public void setPicId(String picId) {
		this.picId = picId;
	}

	public ActivityComment getActivityComment() {
		return activityComment;
	}

	public void setActivityComment(ActivityComment activityComment) {
		this.activityComment = activityComment;
	}
	
	
}
